﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Weixin.Utils;

namespace Weixin.Web
{
    public partial class Test : System.Web.UI.Page
    {
        WX wx = null;
        protected void Page_Load(object sender, EventArgs e)
        {
            Logger.Log4Net.Info("页面加载");
            wx = new WX();
        }

        protected void Button1_Click(object sender, EventArgs e)
        {

            if (wx.CreateCustomerMenu())
            {
                Label1.Text = "成功";
            }
            else
            {
                Label1.Text = "失败";
            }
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            Label1.Text = wx.GetCustomerMenu();
        }

        protected void Button3_Click(object sender, EventArgs e)
        {
            if (wx.DeleteCustomerMenu())
            {
                Label1.Text = "成功";
            }
            else
            {
                Label1.Text = "失败";
            }
        }
    }
}